using pixolut.BizBlox;

public class Food : DataObject
{

//START BizBlox Generated Code : Do not remove or alter this comment
//Last Updated : Friday, 6 November 2009 10:41:17 PM
//BizBlox Version : 1.8.4.0
#region "BizBlox Generated Code"

// ##Start CodeSegment
// $Identifier = +Elements
// $DoNotModify = False

    public Food(){
    }

    public Food(System.Guid uid) : base(uid){
    }

    public Food(System.Guid uid, System.Boolean load) : base(uid, load){
    }

    public Food(ref DOCollection baseCol, int index) : base(ref baseCol, index){
    }

    public Food(System.Data.DataRow dr, DOSelection[] selections) : base(dr, selections){
    }

    public new enum Columns {
        FoodID,
        Name,
        Price
    }

    public override string TableName() {
        return "Food";
    }

    public override System.Enum UidColumn() {
        return Columns.FoodID;
    }


// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = FoodID
// $DoNotModify = False

    private System.Guid m_FoodID;
    [PrimaryKey(), Persist()]
    public System.Guid FoodID{
        get {
            return m_FoodID;
        }
        set {
            this.Touch((int)Columns.FoodID);
            m_FoodID = value;
        }
    }

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = Name
// $DoNotModify = True

    private System.String m_Name;
    [Persist, StringValidator(50, true, true, true, false, true, ".")]
    public System.String Name{
        get {
            return m_Name;
        }
        set {
            this.Touch((int)Columns.Name);
            m_Name = value;
        }
    }

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = Price
// $DoNotModify = False

    private System.Double m_Price;
    [Persist()]
    public System.Double Price{
        get {
            return m_Price;
        }
        set {
            this.Touch((int)Columns.Price);
            m_Price = value;
        }
    }

// ##End CodeSegment

#endregion

//END BizBlox Generated Code : Do not remove or alter this comment

}
